package com.xhwl.data.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xhwl.common.dto.cent.sdata.RoomManageTypeDTO;
import com.xhwl.common.pojo.ResultJson;
import com.xhwl.common.pojo.cent.sdata.RoomManageType;
import com.xhwl.common.query.cent.sdata.RoomManageTypeQuery;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @Author yf
 * @Description:
 * @Date Create in 9:29 2022/06/14
 */
@RestController
public interface IRoomManageTypeService extends IService<RoomManageType> {
    /**
     * 创建
     *
     * @param dto
     * @return
     */
    @RequestMapping(value = "/room-type-service/create", method = RequestMethod.POST)
    ResultJson create(@RequestPart RoomManageTypeDTO dto);

    /**
     * 更新
     *
     * @param dto
     * @return
     */
    @RequestMapping(value = "/room-type-service/update", method = RequestMethod.POST)
    ResultJson update(@RequestPart RoomManageTypeDTO dto);

    /**
     * 删除
     *
     * @param id
     * @return
     */
    @RequestMapping(value = "/room-type-service/delete", method = RequestMethod.POST)
    ResultJson delete(Integer id);

    /**
     * 分页
     * @param roomManageTypeQuery
     * @return
     */
    @RequestMapping(value = "/room-type-service/page", method = RequestMethod.POST)
    Map<String, Object> page(@RequestPart RoomManageTypeQuery roomManageTypeQuery);
}